{include file="header.html"}
<script type="text/javascript">
$(function(){
    $('#add_time_from').datepicker({dateFormat: 'yy-mm-dd'});
    $('#add_time_to').datepicker({dateFormat: 'yy-mm-dd'});
});
</script>
<div id="rightTop">
    <p>提现管理</p>
    <ul class="subnav">
        <li><span>{$lang.manage}</span></li>
    </ul>
</div>
<div class="mrightTop">
    <div class="fontl">
        <form method="get">
             <div class="left">
                <input type="hidden" name="app" value="cash" />
                <input type="hidden" name="act" value="index" />
                <select class="querySelect" name="field">{html_options options=$search_options selected=$smarty.get.field}
                </select>:<input class="queryInput" type="text" name="search_name" value="{$query.search_name|escape}" />
                <select class="querySelect" name="outstatus">
                    <option value="">状态</option>
                    {html_options options=$order_status_list selected=$query.outstatus}
                </select>
                 提交时间从:<input class="queryInput2" type="text" value="{$query.add_time_from}" id="add_time_from" name="add_time_from" class="pick_date" />
                 至:<input class="queryInput2" type="text" value="{$query.add_time_to}" id="add_time_to" name="add_time_to" class="pick_date" />
                金额从:<input class="queryInput2" type="text" value="{$query.amount_from}" name="amount_from" />
                至:<input class="queryInput2" type="text" style="width:60px;" value="{$query.amount_to}" name="amount_to" class="pick_date" />
                <input type="submit" class="formbtn" value="{$lang.query}" />
            </div>
            <!--{if $filtered}-->
            <a class="left formbtn1" href="index.php?app=cash">{$lang.cancel_query}</a>
            <!--{/if}-->
        </form>
    </div>
    <div class="fontr">
        {if $orders}{include file=page.top.html}{/if}
    </div>
</div>
<div class="tdare">
    <table width="100%" cellspacing="0" class="dataTable">
        <!--{if $orders}-->
        <tr class="tatr1">
            <td width="15%" class="firstCell"><span ectype="order_by" fieldname="real_name">真实姓名</span></td>
            <td width="10%"><span ectype="order_by" fieldname="bank_name">银行名称</span></td>
            <td width="15%"><span ectype="order_by" fieldname="bank_account">银行账号</span></td>
            <td width="15%"><span ectype="order_by" fieldname="add_time">提交时间</span></td>
            <td width="15%"><span ectype="order_by" fieldname="amount">提现金额</span></td>
            <td width="10%"><span ectype="order_by" fieldname="outstatus">状态</span></td>
            <td width="10%">操作</td>
        </tr>
        <!--{/if}-->
        <!--{foreach from=$orders item=order}-->
        <tr class="tatr2">
            <td class="firstCell">{$order.real_name|escape}</td>
            <td>{$order.pay_bank_name}</td>
            <td>{$order.bank_account}</td>
            <td>{$order.add_time|date:complete}</td>
            <td>{$order.amount|price}</td>
            <td>{$order.outstatus_name}</td>
            <td><a href="index.php?app=cash&amp;act=edit&amp;id={$order.cash_id}">审核</a></td>
        </tr>
        <!--{foreachelse}-->
        <tr class="no_data">
            <td colspan="7">{$lang.no_data}</td>
        </tr>
        <!--{/foreach}-->
    </table>
    <div id="dataFuncs">
        <div class="pageLinks">
            {if $orders}{include file=page.bottom.html}{/if}
        </div>
    </div>
    <div class="clear"></div>
</div>
{include file="footer.html"}
